Click or drag to resize

Resource Methods

The Resource type exposes the following members.

Methods
  NameDescription
Public methodCode exampleChangeProperty(Property, Property)
Sets (adds) and removes properties to/from a resource.
Public methodCode exampleChangeProperty(Property, PropertyName)
Sets (adds) and removes properties to/from a resource.
Public methodCode exampleChangeProperty(String, Property, Property)
Sets (adds) and removes properties to/from a resource.
Public methodCode exampleChangeProperty(String, Property, PropertyName)
Sets (adds) and removes properties to/from a resource.
Public methodCopy(String, String)
Copies an existing resource to a new resource. Overwriting a existing resource is not allowed.
Public methodCopy(String, String, Boolean)
Copies an existing resource to a new resource. Overwriting a existing resource is allowed if parameter overwrite is true.
Public methodCopy(String, String, Boolean, Boolean)
Copies an existing resource to a new resource. Overwriting a existing resource is allowed if parameter overwrite is true.
Public methodCreateCollection
Create a collection with the given URI. The method is same as CreateFolder.
Public methodCreateFolder
Create a folder with the given URI. The method is same as CreateCollection.
Public methodDelete
Deletes the current resource.
Public methodDelete(String)
Deletes the resource specified with URI.
Public methodDownload(String, Stream)
Downloads data from a resource with the specified URI (address) to a stream.
Public methodDownload(String, String)
Downloads data from a resource with the specified URI (address) to a local file.
Public methodDownload(String, Stream, Int32)
Downloads data from a resource with the specified URI (address) to a stream.
Public methodDownload(String, String, Int32)
Downloads data from a resource with the specified URI (address) to a local file.
Public methodDownloadFile(String, Stream)
Downloads data from a resource with the specified URI (address) to a stream.
Public methodCode exampleDownloadFile(String, String)
Downloads data from a resource with the specified URI (address) to a local file.
Public methodDownloadFile(String, Stream, Int32)
Downloads data from a resource with the specified URI (address) to a stream.
Public methodCode exampleDownloadFile(String, String, Int32)
Downloads data from a resource with the specified URI (address) to a local file.
Public methodEquals (Inherited from Object.)
Public methodExists
Determines whether the specified resource exists.
Public methodExists(String)
Determines whether the specified resource exists.
Protected methodFinalize (Inherited from Object.)
Public methodGetAllowedMethods
Gets the all allowed methods.
Public methodGetAllowedMethods(String)
Gets the all allowed methods.
Public methodGetHashCode (Inherited from Object.)
Public methodGetInputStream
Returns the data stream from the resource.
Public methodGetInputStream(String)
Returns the data stream from the resource.
Public methodGetLock
Gets the locks that exist on this resource.
Public methodGetLock(String)
Gets the locks that exist on this resource.
Public methodGetOutputStream
Returns a Stream for writing data to the resource.
Public methodGetOutputStream(String)
Returns a Stream for writing data to the resource.
Public methodGetProperties
Gets all properties from the resource.
Public methodGetProperties(String)
Gets all properties from the resource.
Public methodGetProperties(String, String)
Gets all properties from the resource.
Public methodGetProperties(PropertyName, String)
Gets properties from a resource.
Public methodGetProperties(String, PropertyName, String)
Gets properties from a resource.
Public methodGetPropertiesAsXml
Gets all properties from the resource.
Public methodGetPropertiesAsXml(String)
Gets all properties from the resource.
Public methodGetProperty(String)
Gets the property from a resource.
Public methodGetProperty(PropertyName)
Gets the property from a resource.
Public methodGetProperty(String, PropertyName)
Gets the property from a resource.
Public methodGetProperty(String, String)
Gets the property from a resource.
Public methodGetPropertyNames
Gets all properties names from a resource.
Public methodGetPropertyNames(String)
Gets all properties names from a resource.
Public methodGetPropertyNames(String, String)
Gets all properties names from a resource.
Public methodGetRequest
Gets the HttpWebRequest object for the current HTTP request.
Public methodGetSize
Gets size of resource.
Public methodGetSize(String)
Gets size of resource.
Public methodGetSupportedDavLevel
Gets the DAV header value.
Public methodGetSupportedDavLevel(String)
Gets the DAV header value.
Public methodGetSupportedLock
Gets the supportedlock property value.
Public methodGetSupportedLock(String)
Gets the supportedlock property value.
Public methodGetType (Inherited from Object.)
Public methodHead
Executes HEAD Http protocol method.
Public methodHead(String)
Executes HEAD Http protocol method.
Public methodIsCollection
Returns a boolean indicating whether this resource is a collection.
Public methodIsCollection(String)
Returns a boolean indicating whether this resource is a collection.
Public methodIsLocked
Returns a boolean indicating whether this resource is locked.
Public methodIsLocked(String)
Returns a boolean indicating whether this resource is locked.
Public methodList
Displays a list of resource URLs.
Public methodList(Boolean)
Displays a list of resource URLs.
Public methodList(String)
Displays a list of resources in a collection.
Public methodList(String, PropertyName)
Displays a list of ResourceInfo.
Public methodList(String, Boolean)
Displays a list of resource URLs.
Public methodList(String, PropertyName, Boolean)
Displays a list of ResourceInfo.
Public methodCode exampleListWithProperties(PropertyName) Obsolete.
Displays a list of subresources and their name and properties.
Public methodCode exampleListWithProperties(String, PropertyName) Obsolete.
Displays a list of subresources and their name and properties.
Public methodCode exampleListWithProperties(PropertyName, Boolean) Obsolete.
Displays a list of subresources and their name and properties.
Public methodCode exampleListWithProperties(String, PropertyName, Boolean) Obsolete.
Displays a list of subresources and their name and properties.
Public methodLock
Lock the current resource.
Public methodLock(Int32)
Lock a resource based on the given parameters.
Public methodLock(String)
Lock a resource based on the given parameters.
Public methodLock(ActiveLock)
Lock a resource based on the given parameters.
Public methodLock(String, ActiveLock)
Lock a resource based on the given parameters.
Public methodLock(String, Int32)
Lock a resource based on the given parameters.
Public methodLock(String, String)
Lock a resource based on the given parameters.
Public methodLock(String, String, Int32)
Lock a resource based on the given parameters.
Public methodLock(String, String, String)
Lock a resource based on the given parameters.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodMove(String, String)
Moves a specified source resource to a destination resource. Overwriting existing resource is not allowed.
Public methodMove(String, String, Boolean)
Moves a specified source resource to a destination resource.
Public methodOptions
Executes OPTIONS Http protocol method.
Public methodOptions(String)
Executes OPTIONS Http protocol method.
Public methodRefreshLock(ActiveLock)
Refresh the lock on this resource by resetting the lock timeout.
Public methodRefreshLock(Int32, ActiveLock)
Refresh the lock on this resource by resetting the lock timeout.
Public methodRefreshLock(Int32, String)
Refresh the lock on this resource by resetting the lock timeout.
Public methodRefreshLock(String, Int32, ActiveLock)
Refresh the lock on a resource by resetting the lock timeout.
Public methodRefreshLock(String, Int32, String)
Refresh the lock on this resource by resetting the lock timeout.
Public methodRefreshLock(String, String, ActiveLock)
Refresh the lock on a resource by resetting the lock timeout.
Public methodRefreshLock(String, String, String)
Refresh the lock on this resource by resetting the lock timeout.
Public methodRemoveProperty(String)
Removes the property from the resource.
Public methodRemoveProperty(Property)
Remove a property from a resource.
Public methodRemoveProperty(PropertyName)
Remove a property from a resource.
Public methodRemoveProperty(PropertyName)
Remove a property from a resource.
Public methodRemoveProperty(String, Property)
Remove a property from a resource.
Public methodRemoveProperty(String, Property)
Remove a property from a resource.
Public methodRemoveProperty(String, PropertyName)
Remove a property from a resource.
Public methodRemoveProperty(String, PropertyName)
Remove a property from a resource.
Public methodRemoveProperty(String, String)
Remove a property from a resource.
Public methodRemoveProperty(String, String, String)
Remove a property from a resource.
Public methodSetProperty(Property)
Sets a property on a resource.
Public methodSetProperty(Property)
Sets a property on a resource.
Public methodSetProperty(String, Property)
Sets a property on a resource.
Public methodSetProperty(String, Property)
Sets a property on a resource.
Public methodSetProperty(String, String)
Sets a property on a resource.
Public methodSetProperty(Property, Property)
Sets (adds) and removes properties to/from a resource.
Public methodSetProperty(Property, PropertyName)
Sets (adds) and removes properties to/from a resource.
Public methodSetProperty(String, Property, Property)
Sets (adds) and removes properties to/from a resource.
Public methodSetProperty(String, Property, PropertyName)
Sets (adds) and removes properties to/from a resource.
Public methodSetProperty(String, String, String)
Sets a property on a resource.
Public methodSetProperty(String, String, String, String)
Sets a property on a resource.
Public methodToString (Inherited from Object.)
Public methodUnlock
Unlock the lock on this resource.
Public methodUnlock(String)
Unlock the lock on the resource identifies by address.
Public methodUnlock(ActiveLock)
Unlock the lock on this resource.
Public methodUnlock(ActiveLock)
Unlock the locks on this resource.
Public methodUnlock(String, ActiveLock)
Unlock the lock on a resource.
Public methodUnlock(String, ActiveLock)
Unlock the locks on a resource.
Public methodUnlock(String, String)
Unlock the lock identified by the lockToken on this resource.
Public methodUpload(String, Stream)
Uploads a data from stream a resource with the specified URI.
Public methodUpload(String, String)
Uploads a local file to a resource with the specified URI.
Public methodUpload(String, Stream, ContentRange)
Uploads a data from stream a resource with the specified URI.
Public methodUpload(String, Stream, Int32)
Uploads a data from stream a resource with the specified URI.
Public methodUpload(String, String, ContentRange)
Uploads a local file to a resource with the specified URI.
Public methodUpload(String, String, Int32)
Uploads a local file to a resource with the specified URI.
Public methodUpload(String, Stream, Int32, ContentRange)
Uploads a data from stream a resource with the specified URI.
Public methodUpload(String, String, Int32, ContentRange)
Uploads a local file to a resource with the specified URI.
Public methodCode exampleUploadFile(String, String)
Uploads a local file to a resource with the specified URI.
Public methodUploadFile(String, String, ContentRange)
Uploads a local file to a resource with the specified URI.
Public methodUploadFile(String, String, Int32)
Uploads a local file to a resource with the specified URI.
Public methodCode exampleUploadFile(String, String, Int32, ContentRange)
Uploads a local file to a resource with the specified URI.
Top
See Also